<?php

class m130704_145556_change_transaction_structure extends CDbMigration
{
	public function up()
	{
		$this->dropForeignKey('fk_transactions_users1','transactions');
		$this->dropColumn('transactions', 'tran_cert');
		$this->renameColumn('transactions', 'user_id', 'code');
	}

	public function down()
	{
	}

	/*
	// Use safeUp/safeDown to do migration with transaction
	public function safeUp()
	{
	}

	public function safeDown()
	{
	}
	*/
}